<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src='vue.js'></script>
</head>
<body>
	<div id="app" class="111">
		{{fullName}}
	</div>

	<script>
		var app = new Vue({
			el: '#app',
			data: {
				firstName: 'Dell',
				lastName: 'Lee'
			},
			computed: {
				fullName: {
					get () {
						return this.firstName + ' ' + this.lastName;
					},
					set (value) {
						var arr = value.split(' ');
						this.firstName = arr[0];
						this.lastName = arr[1];
						console.log(value);
					}
				}
			}
		})

		
	</script>
</body>
</html>